package com.health.service;

import com.health.entity.PageResult;
import com.health.entity.QueryPageBean;
import com.health.entity.Result;
import com.health.pojo.Permission;

import java.util.List;

/**
 * @Classname PermissionService
 * @Description TODO
 * @Version 1.0.0
 * @Date 2023/3/18 16:26
 * @Author RainGrd
 */
public interface PermissionService {
    PageResult queryPermissionPage(QueryPageBean queryPageBean);

    Result savePermission(Permission permission, Integer[] roleIds);

    Result editPermission(Permission permission, Integer[] roleIds);

    List<Integer> queryRoleIdsByPermissionId(Integer permissionId);

    Result clearPermissionId(Integer permissionId);
}
